﻿@extends('admin.comment')

@section('style')

@endsection

@section('content')
	<div class="page-container">
		<p class="f-20 text-success">欢迎进入福源家私后台管理系统 <span class="f-14">v1.0</span>后台模版！</p>
		<p>登录次数：{{$lastData['count']}} </p>
		<p>上次登录IP：{{$lastData['data']['ip']}}  上次登录时间：{{$lastData['data']['time']}}</p>
		@if($level == 1)
		<!-- 等级为1时才能查看统计信息和服务器信息 -->
			<table class="table table-border table-bordered table-bg">
				<thead>
					<tr>
						<th colspan="7" scope="col">信息统计</th>
					</tr>
					<tr class="text-c">
						<th>统计</th>
						<th>资讯库</th>
						<th>图片库</th>
						<th>产品库</th>
						<th>用户</th>
						<th>管理员</th>
					</tr>
				</thead>
				<tbody>
					<tr class="text-c">
						<td>总数</td>
						<td>92</td>
						<td>9</td>
						<td>0</td>
						<td>8</td>
						<td>20</td>
					</tr>
					<tr class="text-c">
						<td>今日</td>
						<td>0</td>
						<td>0</td>
						<td>0</td>
						<td>0</td>
						<td>0</td>
					</tr>
					<tr class="text-c">
						<td>昨日</td>
						<td>0</td>
						<td>0</td>
						<td>0</td>
						<td>0</td>
						<td>0</td>
					</tr>
					<tr class="text-c">
						<td>本周</td>
						<td>2</td>
						<td>0</td>
						<td>0</td>
						<td>0</td>
						<td>0</td>
					</tr>
					<tr class="text-c">
						<td>本月</td>
						<td>2</td>
						<td>0</td>
						<td>0</td>
						<td>0</td>
						<td>0</td>
					</tr>
				</tbody>
			</table>
			<table class="table table-border table-bordered table-bg mt-20">
				<thead>
					<tr>
						<th colspan="2" scope="col">服务器信息</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<th width="30%">服务器计算机名</th>
						<td><span id="lbServerName">http://127.0.0.1/</span></td>
					</tr>
					@foreach($serviceData as $key => $sd)
						<tr>
							<td>{{$key}} </td>
							<td>{{$sd}}</td>
						</tr>
					@endforeach
				</tbody>
			</table>
		@endif
	</div>
	<footer class="footer mt-20">
		<div class="container" style="width:97%;">
			<p>福源家私 2018&copy;1.0.0  皖ICP备17020314号-1</p>
		</div>
	</footer>
	<script>
	var _hmt = _hmt || [];
	(function() {
	  var hm = document.createElement("script");
	  hm.src = "https://hm.baidu.com/hm.js?080836300300be57b7f34f4b3e97d911";
	  var s = document.getElementsByTagName("script")[0]; 
	  s.parentNode.insertBefore(hm, s);
	})();
	</script>
@endsection